// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** analyzeExamResult POST /api/exam/analyze/examResult */
export async function analyzeExamResultUsingPost(
  body: API.ExamGetResultRequest,
  options?: { [key: string]: any }
) {
  return request<boolean>('/api/exam/analyze/examResult', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** cancelExam POST /api/exam/cancel */
export async function cancelExamUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.cancelExamUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/exam/cancel', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** debugCode POST /api/exam/debug/code */
export async function debugCodeUsingPost(
  body: API.DebugCodeRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseDebugCodeResponse_>('/api/exam/debug/code', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteExam GET /api/exam/delete */
export async function deleteExamUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteExamUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/exam/delete', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** generateExam POST /api/exam/generate */
export async function generateExamUsingPost(
  body: API.ExamGenerateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/exam/generate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getExamAnalyzeResult GET /api/exam/get/analyze/result */
export async function getExamAnalyzeResultUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getExamAnalyzeResultUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseGetExamAnalyzeResultResponse_>('/api/exam/get/analyze/result', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getPartQuestionCount GET /api/exam/get/partQuestion/count */
export async function getPartQuestionCountUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPartQuestionCountUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePartQuestionCountResponse_>('/api/exam/get/partQuestion/count', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getQuestion GET /api/exam/get/question */
export async function getQuestionUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getQuestionUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseExamQuestionWrapper_>('/api/exam/get/question', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getExamList GET /api/exam/get/user/exam */
export async function getExamListUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListExam_>('/api/exam/get/user/exam', {
    method: 'GET',
    ...(options || {}),
  })
}

/** getWrongProgramingInfo GET /api/exam/get/wrongProgramingInfo */
export async function getWrongProgramingInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getWrongProgramingInfoUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListListWrongProgramingInfoVO_>(
    '/api/exam/get/wrongProgramingInfo',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  )
}
